package com.goods.business.service;

import com.goods.common.vo.business.ProductStockVO;
import com.goods.common.vo.business.ProductVO;

import java.util.List;
import java.util.Map;

public interface ProductService {
    Map findProductList(Integer pageNum, Integer pageSize, String name, Long[] categorys, String supplier, int status);

    void add(ProductVO productVO);

    ProductVO edit(Long id);

    int updateById(ProductVO productVO);

    int removeById(Long id);

    int back(Long id);

    int deleteById(Long id);

    int publish(Long id);

    List<ProductStockVO> findAllStocks(Integer pageNum, Integer pageSize);
}
